package org.example.SystemDemo.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200,"请求成功"),
    ERROR(500,"请求错误"),
    NO_AUTHOR(302,"用户未验证"),

    LOGIN_ERROR(303,"登录失败"),
    LOGIN_SUCCESS(201,"登录成功");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
